<script setup lang="ts">
import { ref } from "vue";
import { useRouter } from "vue-router";
const router = useRouter();
const showDetail = () => {
  router.push("/filmDetail");
};
</script>

<template>
  <div>
    <van-card v-for="i in 100" :key="i" num="1" origin-price="50.00" price="45.00" desc="描述信息" title="商品标题" thumb="https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg" @click="showDetail">
      <template #tags>
        <van-tag class="tag" color="#754dec" text-color="#fff">大陆</van-tag>
        <van-tag class="tag" color="#754dec" text-color="#fff">仙侠剧</van-tag>
      </template>
      <template #footer>
        <van-button size="mini">加入购入车</van-button>
        <van-button size="mini">立即购买</van-button>
      </template>
    </van-card>
  </div>
</template>

<style scoped>
.tag {
  padding: 2px 6px;
  border-radius: 4px;
  margin: 0 4px;
  color: #754dec;
}
</style>
